<script language="JavaScript" type="text/javascript">
<!--
function chkFormular() {
	if(document.getElementById('nickname').value == "") {
		alert("%you_have_to_nickname%");
		document.getElementById('nickname').focus();
   		return false;
	}

	if(document.getElementById('usernamenew').value == "") {
		alert("%you_have_to_username%");
		document.getElementById('usernamenew').focus();
   		return false;
	}

	if(document.getElementById('firstname').value == "") {
		alert("%you_have_to_firstname%");
		document.getElementById('firstname').focus();
		return false;
	}

	if(document.getElementById('b_day').value < 1 || document.getElementById('b_day').value > 31) {
		alert("%you_have_to_bday%");
		document.getElementById('b_day').focus();
		return false;
	}

	if(document.getElementById('b_month').value < 1 || document.getElementById('b_month').value > 12) {
		alert("%you_have_to_bday%");
		document.getElementById('b_month').focus();
		return false;
	}

	if(document.getElementById('b_year').value < 1900 || document.getElementById('b_year').value > 2050) {
		alert("%you_have_to_bday%");
		document.getElementById('b_year').focus();
		return false;
	}

}
-->
<!-- Steam Community Help ----------------------------------------- 
function SteamCommunityHelp(URL) { 
day = new Date(); 
id = day.getTime(); 
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=450,left = 590,top = 262');"); 
} 
// End ----------------------------------------------------------->
</script>

<form method="post" name="post" action="myprofile" enctype="multipart/form-data" onsubmit="return chkFormular()">
<center>$showerror</center>
<table width="100%" border="0" cellspacing="$cellspacing" cellpadding="$cellpadding" class="formtable">
  <tr>
    <td colspan="2" class="title">&nbsp; &#8226; %profile-info%:</td>
  </tr>
  <tr> 
      <td colspan="2" bgcolor="$pagebg"></td>
    </tr>

   <tr>
    <td bgcolor="$bg1" align="right" >%nickname%:*</td>
    <td bgcolor="$bg2"><input type="text" name="nickname" id="nickname" value="$nickname" maxlength="30" size="30" /></td>
  </tr>
  <tr>
    <td bgcolor="$bg1" align="right" bgcolor="$bg3">%username%:*</td>
    <td bgcolor="$bg2"><input name="usernamenew" type="text" id="usernamenew" value="$username" maxlength="30" size="30" /></td>
  </tr>
    <tr>
      <td bgcolor="$bg1" align="right" bgcolor="$bg1">Password:</td>
      <td bgcolor="$bg2">
		<img border="0" src="images/cup/icons/bullet.gif" width="11" height="8">
		<a href="myprofile&amp;action=editpwd">Edit 
        Password</a></td>
    </tr>
	<tr>
      <td align="right" bgcolor="$bg1">Game Accounts:</td>
      <td bgcolor="$bg2">
		<img border="0" src="images/cup/icons/bullet.gif" width="11" height="8">
		<a href="myprofile&amp;action=gameaccounts">Add/Edit Game 
		Accounts</a> </td>
    </tr>
  <tr>
    <td align="right" bgcolor="$bg1">%e-mail%:*</td>
    <td bgcolor="$bg2">
		<img border="0" src="images/cup/icons/bullet.gif" width="11" height="8">
		<a href="myprofile&amp;action=editmail">Edit Email</a> - $email</td>
  </tr>
  <tr>
    <td align="right" bgcolor="$bg1">Steam:</td>
    <td bgcolor="$bg2"><input type="text" name="sc_id" value="$ds[sc_id]" size="30" /> Click <a href="javascript:SteamCommunityHelp('http://team-x1.co.uk/popup.phpfaq/action-faq&faqID=69&faqcatID=7')">here</a> to find yours!</td>
  </tr>
  <tr>
    <td bgcolor="$bg1" align="right"  valign="top">$viewavatar</td>
    <td bgcolor="$bg2"><input name="avatar" type="file" size="30" />
    <input class="input" name="delavatar" type="checkbox" value="1" />
    <small>%delete_max_90_90%</small><br />%or%<br />
    <input name="avatar_url" id="avatarurl" type="text" size="30" value="http://" /><br />
    $fbimg</td>
  </tr>
  <tr bgcolor="$bg4">
    <td align="right" bgcolor="$bg1" valign="top">$viewpic</td>
    <td bgcolor="$bg2"><input name="userpic" type="file" size="30" />
    <input class="input" name="deluserpic" type="checkbox" value="1" />
    <small>%delete_max_230_210%</small><br />%or%<br />
    <input name="userpic_url" type="text" size="30" value="http://" /></td>
  </tr>
  <tr>
    <td bgcolor="$bg1" align="right" valign="top" >%signature%:</td>
    <td bgcolor="$bg2"><textarea name="usertext" cols="70" rows="5" style="width:100%">$usertext</textarea></td>
  </tr>
  <tr><td colspan="2" bgcolor="$pagebg"></td></tr>
  <tr>
    <td colspan="2" class="title">&nbsp; &#8226; %personal-info%:</td>
  </tr>
  <tr><td colspan="2" bgcolor="$pagebg"></td></tr>
 <tr>
    <td bgcolor="$bg1" align="right" >%first_name%:*</td>
    <td bgcolor="$bg2"><input type="text" name="firstname" id="firstname" value="$firstname" size="30" /></td>
  </tr>
  <tr>
    <td align="right" bgcolor="$bg1">%last_name%:</td>
    <td bgcolor="$bg2"><input type="text" name="lastname" value="$lastname" size="30" /></td>
  </tr>
   <tr>
    <td bgcolor="$bg1" align="right" >%date_of_birth%:*</td>
    <td bgcolor="$bg2"><input type="text" name="b_day" id="b_day" value="$b_day" size="2" />
    .
    <input type="text" name="b_month" id="b_month" value="$b_month" size="2" />
    .
    <input type="text" name="b_year" id="b_year" value="$b_year" size="4" /> Format is DD/MM/YYYY (I.e. 15/12/ and not 12/15/) </td> 
  </tr>
  <tr>
    <td align="right" bgcolor="$bg1">%sexuality%:</td>
    <td bgcolor="$bg2"><select name="sex">$sex</select></td>
  </tr>
  <tr>
    <td bgcolor="$bg1" align="right" >%country%:</td>
    <td bgcolor="$bg2"><select name="flag" onchange="document.getElementById('county').src='images/flags/'+this.options[this.selectedIndex].value+'.gif'">$countries</select> $country</td>
  </tr>
  <tr>
    <td align="right" bgcolor="$bg1">%town%:</td>
    <td bgcolor="$bg2"><input type="text" name="town" size="30" value="$town" /></td>
  </tr>
  <tr>
    <td bgcolor="$bg1" align="right" >ICQ#:</td>
    <td bgcolor="$bg2"><input type="text" name="icq" value="$icq" size="30" /></td>
  </tr>
    <tr>
      <td align="right" bgcolor="$bg1">Skype:</td>
      <td bgcolor="$bg2"><input type="text" name="skype" value="$ds[skype]" size="30" /></td>
    </tr>

    <input type="hidden" name="xfirec" value="$ds[xfire]"" size="30" READONLY>
    <input type="hidden" name="steam" value="$ds[sc_id]" size="30" READONLY>

    <tr>
      <td align="right" bgcolor="$bg1">Xfire:</td>
      <td bgcolor="$bg2"><input type="text" name="xfire" value="$ds[xfire]""></td>
    </tr>
	<tr>
      <td align="right" bgcolor="$bg1">Xfire-Style:</td>
      <td bgcolor="$bg2"><select name="xfirestyle">'.$xlist.'</select>&nbsp;<select name="xfiregroesse">'.$xflist.'</select>
    </tr>
    <tr>
      <td align="right" bgcolor="$bg1">MSN:</td>
      <td bgcolor="$bg2"><input type="text" name="msn" value="$ds[msn]" size="30"></td>
    </tr>
    <tr>
      <td align="right" bgcolor="$bg1">AIM:</td>
      <td bgcolor="$bg2"><input type="text" name="aim" value="$ds[aim]" size="30"></td>
    </tr>
    <tr>
      <td align="right" bgcolor="$bg1">Yahoo:</td>
      <td bgcolor="$bg2"><input type="text" name="yahoo" value="$ds[yahoo]" size="30"></td>
    </tr>
  <tr bgcolor="$bg3">
    <td align="right" bgcolor="$bg1">%homepage%:</td>
    <td bgcolor="$bg2"><input type="text" name="homepage" value="$homepage" size="30" maxlength="255" /></td>
  </tr>
  <tr>
    <td bgcolor="$bg1" align="right" valign="top" >%about_myself%:<br /><br />
    <small><b>%options%:</b><br />%html%<br />%bbcode%<br />%smilies%</small></td>
    <td bgcolor="$bg2"><textarea name="messageabout" cols="70" rows="8" style="width:100%">$about</textarea></td>
  </tr>
  <tr><td colspan="2" bgcolor="$pagebg"></td></tr>
  <tr>
    <td colspan="2" class="title">&nbsp; &#8226; %options%:</td>
  </tr>
  <tr><td colspan="2" bgcolor="$pagebg"></td></tr>
  <tr>
    <td bgcolor="$bg1" align="right" >%newsletter%</td>
    <td bgcolor="$bg2"><select name="newsletter">$newsletter</select></td>
  </tr>
  <tr>
    <td align="right" bgcolor="$bg1">%language%</td>
    <td bgcolor="$bg2"><select name="language">$langdirs</select></td>
  </tr>
  <tr>
    <td bgcolor="$bg1" align="right" >%mail_on_new_pm%</td>
    <td bgcolor="$bg2"><select name="pm_mail">$pm_mail</select></td>
  </tr>
  <tr>
    <td align="right" bgcolor="$bg1">%hide_e-mail%</td>
    <td bgcolor="$bg2"><input type="checkbox" name="mail_hide" value="1"$email_hide /></td>
  </tr>
  <tr><td colspan="2" bgcolor="$pagebg"></td></tr>
  <tr>
    <td colspan="2" class="title">&nbsp; &#8226; %clan-info%:</td>
  </tr>
  <tr><td colspan="2" bgcolor="$pagebg"></td></tr>
   <tr>
    <td bgcolor="$bg1" align="right" >%clan-tag%:</td>
    <td bgcolor="$bg2"><input type="text" name="clantag" value="$clantag" size="30" /></td>
  </tr>
  <tr>
    <td align="right" bgcolor="$bg1">%clan-name%:</td>
    <td bgcolor="$bg2"><input type="text" name="clanname" value="$clanname" size="30" /></td>
  </tr>
   <tr>
    <td bgcolor="$bg1" align="right" >%clan-hp%:</td>
    <td bgcolor="$bg2"><input type="text" name="clanhp" value="$clanhp" size="30" /></td>
  </tr>
  <tr>
    <td align="right" bgcolor="$bg1">%clan-irc%:</td>
    <td bgcolor="$bg2"><input type="text" name="clanirc" value="$clanirc" size="30" /></td>
  </tr>
    <tr>
      <td align="right" bgcolor="$bg1">ESL-Nick:</td>
      <td bgcolor="$bg2"><input type="text" name="clanesl" value="$clanesl"></td>
    </tr>
   <tr>
    <td bgcolor="$bg1" align="right" >%clan-history%:</td>
    <td bgcolor="$bg2"><input type="text" name="clanhistory" value="$clanhistory" size="30" /></td>
  </tr>
  <tr>
    <td colspan="2" class="title">&nbsp; &#8226; %equipment-info%:</td>
   </tr>
   <tr><td colspan="2" bgcolor="$pagebg"></td></tr>
    <tr>
    <td bgcolor="$bg1" align="right" >%cpu%:</td>
    <td bgcolor="$bg2"><input type="text" name="cpu" value="$cpu" size="30" /></td>
  </tr>
  <tr>
    <td bgcolor="$bg1" align="right" bgcolor="$bg3">%mainboard%:</td>
    <td bgcolor="$bg2"><input type="text" name="mainboard" value="$mainboard" size="30" /></td>
  </tr>
  <tr>
    <td bgcolor="$bg1" align="right" >%ram%:</td>
    <td bgcolor="$bg2"><input type="text" name="ram" value="$ram" size="30" /></td>
  </tr>
  <tr>
    <td bgcolor="$bg1" align="right" bgcolor="$bg3">%monitor%:</td>
    <td bgcolor="$bg2"><input type="text" name="monitor" value="$monitor" size="30" /></td>
  </tr>
 <tr>
    <td bgcolor="$bg1" align="right" >%graphiccard%:</td>
    <td bgcolor="$bg2"><input type="text" name="graphiccard" value="$graphiccard" size="30" /></td>
  </tr>
  <tr>
    <td bgcolor="$bg1" align="right" bgcolor="$bg3">%soundcard%:</td>
    <td bgcolor="$bg2"><input type="text" name="soundcard" value="$soundcard" size="30" /></td>
  </tr>
  <tr>
    <td bgcolor="$bg1" align="right" >%i-connection%:</td>
    <td bgcolor="$bg2"><input type="text" name="connection" value="$connection" size="30" /></td>
  </tr>
  <tr>
    <td bgcolor="$bg1" align="right" bgcolor="$bg3">%keyboard%:</td>
    <td bgcolor="$bg2"><input type="text" name="keyboard" value="$keyboard" size="30" /></td>
  </tr>
  <tr>
    <td bgcolor="$bg1" align="right" >%mouse%:</td>
    <td bgcolor="$bg2"><input type="text" name="mouse" value="$mouse" size="30" /></td>
  </tr>
  <tr>
    <td bgcolor="$bg1" align="right" bgcolor="$bg3">%mousepad%:</td>
    <td bgcolor="$bg2"><input type="text" name="mousepad" value="$mousepad" size="30" /></td>
  </tr>
  	<tr>
      <td colspan="2" class="title">&nbsp; &#8226; Favourites:</td>
    </tr>
	<tr>
      <td colspan="2" bgcolor="$pagebg"></td>
    </tr>
        <tr>
      <td bgcolor="$bg1" align="right" bgcolor="$bg1">Game:</td>
      <td bgcolor="$bg2"><input type="text" name="fgame" value="$fgame"></td>
    </tr>
	<tr>
      <td bgcolor="$bg1" align="right" bgcolor="$bg3">Clan:</td>
      <td bgcolor="$bg2"><input type="text" name="fclan" value="$fclan"></td>
    </tr>
	<tr>
      <td bgcolor="$bg1" align="right" bgcolor="$bg1">Map:</td>
      <td bgcolor="$bg2"><input type="text" name="fmap" value="$fmap"></td>
    </tr>
	<tr>
      <td bgcolor="$bg1" align="right" bgcolor="$bg3">Weapon:</td>
      <td bgcolor="$bg2"><input type="text" name="fweapon" value="$fweapon"></td>
    </tr>
	<tr>
      <td bgcolor="$bg1" align="right" bgcolor="$bg1">Food:</td>
      <td bgcolor="$bg2"><input type="text" name="ffood" value="$ffood"></td>
    </tr>
	<tr>
      <td bgcolor="$bg1" align="right" bgcolor="$bg3">Drink:</td>
      <td bgcolor="$bg2"><input type="text" name="fdrink" value="$fdrink"></td>
    </tr>
	<tr>
      <td bgcolor="$bg1" align="right" bgcolor="$bg1">Movie:</td>
      <td bgcolor="$bg2"><input type="text" name="fmovie" value="$fmovie"></td>
    </tr>
	<tr>
      <td bgcolor="$bg1" align="right" bgcolor="$bg3">Music:</td>
      <td bgcolor="$bg2"><input type="text" name="fmusic" value="$fmusic"></td>
    </tr>
	<tr>
      <td bgcolor="$bg1" align="right" bgcolor="$bg1">Song:</td>
      <td bgcolor="$bg2"><input type="text" name="fsong" value="$fsong"></td>
    </tr>
	<tr>
      <td bgcolor="$bg1" align="right" bgcolor="$bg3">Book:</td>
      <td bgcolor="$bg2"><input type="text" name="fbook" value="$fbook"></td>
    </tr>
	<tr>
      <td bgcolor="$bg1" align="right" bgcolor="$bg1">Actor / Actress:</td>
      <td bgcolor="$bg2"><input type="text" name="factor" value="$factor"></td>
    </tr>
	<tr>
      <td bgcolor="$bg1" align="right" bgcolor="$bg3">Car:</td>
      <td bgcolor="$bg2"><input type="text" name="fcar" value="$fcar"></td>
    </tr>
	<tr>
      <td bgcolor="$bg1" align="right" bgcolor="$bg1">Sport:</td>
      <td bgcolor="$bg2"><input type="text" name="fsport" value="$fsport"></td>
    </tr>
  <tr>
    <td align="right"></td>
    <td><input type="submit" name="submit" value="%update_profile%" /><br /><br />%fields_star_required%</td>
  </tr>
</table>
</form>